<h3><i class="fa fa-search fashion"></i> Ricerche</h3>
<div id="main">
	<div id="main-column">
	<?php
	$paramSesso = "";
	$paramTipo = "";
	$titolo = "Profili Ricercati";
		
	echo("<strong>&nbsp;::&nbsp;".$titolo."</strong>");
    $table = '<form action="'.$_SERVER['PHP_SELF'].'" method="post" onsubmit="return conferma()">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-striped table-bordered table-hover table-condensed">
	<thead>
	<tr>
		<th width="70">Id</th>
		<th width="150" align="center">Parola</th>
		<th width="100" align="center">IP</th>
		<th width="80" align="center">Data</th>
	</tr></thead>';
	$count=0;
    while ($row = mysql_fetch_array($this->_res))
    {    
        $testo_ricerca = stripslashes($row['testo']);
		$id_ricerca = $row['id_ricerca'];
		$IP = $row['IP'];
		
		if($row['dt_ricerca']!="")
			$dt_ricerca = date("j/m/Y", $row['dt_ricerca']);
		else
			$dt_ricerca = "";
		
		$table .= '<tr>';
		$table .= '<td>'.$id_ricerca.'</td>';
		$table .= '<td>'.$testo_ricerca.'</td>';
		$table .= '<td>'.$IP.'</td>';
		$table .= '<td>'.$dt_ricerca.'</td>';	
		$table .= '</tr>';
		$count++;	
    }
    mysql_free_result($this->_res); 
	$table .= '</table></form>';   
	?>
<?=$table;?>
    
